<template>
  <div class="app">
    <merchantHeader />
    <div class="back">
      <div class="con">
        <div class="pxes"></div>
        <div class="listneo">
          <businessL />
          <div class="conres">
            <div class="ra">贷款账户>>修改支付密码>>忘了密码</div>
            <h4>找回密码</h4>
            <div class="yuansdj">
              <el-steps :active="active" align-center>
                <el-step title="验证身份"></el-step>
                <el-step title="重置密码"></el-step>
                <el-step title="重置成功"></el-step>
              </el-steps>
              <div class="yuansdj_box" v-if="active==1">
                <el-form label-width="100px">
                  <el-form-item label="手机号:">
                    <el-input size="small" style="width:245px" v-model="phones"></el-input>
                  </el-form-item>
                  <el-form-item label="验证码:">
                    <el-col :span="12">
                      <el-input size="small" v-model="code"></el-input>
                    </el-col>
                    <el-col :span="7">
                      <el-button size="small">获取验证码</el-button>
                    </el-col>
                  </el-form-item>
                  <el-button @click="next" size="small" type="danger" style="display:block;margin: 0 auto;">下一步</el-button>
                </el-form>
              </div>
              <div class="yuansdj_box" v-if="active==2">
                  <el-form label-width="100px">
                  <el-form-item label="输入新密码:">
                    <el-input size="small" type="password" style="width:245px" v-model="newPassword"></el-input>
                  </el-form-item>
                  <el-form-item label="确认新密码:">
                    <el-input size="small" type="password" style="width:245px" v-model="againPassword"></el-input>
                  </el-form-item>
                  <el-button @click="next" size="small" type="danger" style="display:block;margin: 0 auto;">下一步</el-button>
                </el-form>
              </div>
              <div class="yuansdj_box" v-if="active==3">
                  <div style="text-align:center">
                      密码已重置成功！请返回<span @click="$router.push('/bussChangedPassword')" style="color:blue;text-decoration:underline">修改支付密码页面</span>
                  </div>
              </div>
            </div>
            <businessF />
          </div>
        </div>
      </div>
    </div>
    <Footer />
  </div>
</template>
<script>
import merchantHeader from "@/components/merchantHeader";
import Footer from "@/components/Footer";
import businessL from "@/components/businessL";
import businessF from "@/components/businessF";
export default {
  components: {
    merchantHeader,
    Footer,
    businessL,
    businessF
  },
  data() {
    return {
      active: 1,
      phones:"",
      code:"",
      newPassword:"",
      againPassword:""
    };
  },
  methods: {
    next(){
        this.active++
    }
  }
};
</script>
<style scoped>
.app /deep/ .ist_l .ist_c li:nth-child(1) {
  background-color: #ff9381;
  width: 126px;
  height: 50px;
  display: block;
}

.back {
  background-color: #f06048;
}
.pxes {
  height: 15px;
}
.back .con {
  width: 1200px;
  margin: 0 auto;
  background-color: #eee;
  padding-bottom: 10px;
}
.listneo {
  width: 1161px;
  margin: 0px auto;
  display: flex;
  justify-content: space-between;
}
.conres {
  width: 902px;
  border-radius: 6px;
  background-color: #fff;
}
.conres .ra {
  font-size: 20px;
  color: #fff;
  text-align: center;
  line-height: 43px;
  margin-left: 14px;
  position: relative;
  top: 15px;
  width: 385px;
  height: 43px;
  background-color: #f06048;
  box-shadow: 0px 4px 2px 0px rgba(70, 23, 15, 0.38);
  border-radius: 0px 0px 20px 20px;
}
.yuansdj {
  width: 90%;
  margin: 35px auto;
}
h4 {
  font-size: 17px;
  margin-top: 35px;
  text-indent: 35px;
  padding-bottom: 5px;
  border-bottom: solid 1px rgb(220, 220, 220);
}
.yuansdj_box {
  width: 400px;
  margin: 40px auto;
}
</style>